// 客户
import request from "../request";

// 获取表单列表 排序、查询、重置、高级查询也用这个
export function Getlist(params) {
  return request({
    url: "/base/basCustomer/list?",
    method: "get",
    params,
  });
}

// 删除
export function DelOnelist(id) {
  return request({
    url: `/base/basCustomer/delete?id=` + id,
    method: "delete",
  });
}

// 判断新增输入的值是否可用
export function Check(params) {
  return request({
    url: "/sys/duplicate/check?",
    method: "get",
    params,
  });
}

// 新增弹窗的添加
export function Addnewlist(data) {
  return request({
    url: "/base/basCustomer/add",
    method: "post",
    data,
  });
}
